import {baseUrl} from '@/config/baseUrl.js'

import {requestInterceptors,responseInterceptors} from './interceptors.js'

import { http } from 'uview-plus'

const initRequest=(vm)=>{
	http.setConfig((defaultConfig) => {
		defaultConfig.baseURL = baseUrl
		return defaultConfig
	})
	requestInterceptors()
	responseInterceptors()
}
export {
	initRequest
}